package com.yyh.service.impl;

import com.yyh.entity.Follow;
import com.yyh.entity.Student;
import com.yyh.entity.StudentParam;
import com.yyh.entity.Users;
import com.yyh.mapper.StudentMapper;
import com.yyh.mapper.UsersMapper;
import com.yyh.service.IStudentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yangyueheng
 * @since 2020-06-05
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements IStudentService {

	@Autowired
	StudentMapper studentMapper;
	
	@Override
	public List<Student> getStu(StudentParam s) {
		// TODO Auto-generated method stub
		return studentMapper.getStu(s);
	}

	@Override
	public List<StudentParam> getZxsStu(StudentParam s) {
		// TODO Auto-generated method stub
		return studentMapper.getZxsStu(s);
	}

	@Override
	public boolean updateZxsStu(@Valid Student student) {
		// TODO Auto-generated method stub
		return studentMapper.updateZxsStu(student);
	}

	@Override
	public List<StudentParam> getWlzxStu(StudentParam s) {
		// TODO Auto-generated method stub
		return studentMapper.getWlzxStu(s);
	}

	@Override
	public boolean insertStu(Student student) {
		// TODO Auto-generated method stub
		return studentMapper.insertStu(student);
	}

	@Override
	public boolean insertFollow(Follow follow) {
		// TODO Auto-generated method stub
		return studentMapper.insertFollow(follow);
	}
}
